//新建一个rollup.config.js
export default [
    {
        input: "./src/index.js",
        output: {
            file: "./dist/index.cjs",
            format: "cjs",
            exports: "default",
        },
    },
    {
        input: "./src/index.js",
        output: {
            file: "./dist/index.mjs",
            format: "es",
        },
    },
];
